package libtool65.o65;

import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.util.LinkedList;
import java.util.List;

public class Options {
	public List<Option> options = new LinkedList<Option>(); 

	public void read(InputStream file) throws IOException, OptionException {
		options.clear();
		while (true) {
			Option option = new Option();
			option.read(file);
			if (option.isEmpty())
				break;
			options.add(option);
		}
	}

	public void dumpInfo(PrintStream out) {
		for (Option option : options)
		{
			option.dumpInfo(out);
		}
		
	}

}
